#ifndef LISTWIDGETDEMO_H
#define LISTWIDGETDEMO_H

#include <QMap>
#include <QDialog>

class QIcon;
class QListWidget;
class QDialogButtonBox	;

class ListWidgetDemo : public QDialog
{
	Q_OBJECT

public:
	ListWidgetDemo(const QMap<int, QString> &symbolMap,
		QWidget *parent = 0);

	int selectedId() const { return id; }
	void done(int result);

private:
	QIcon iconForSymbol(const QString &symbol);

private:
	int id;
	QListWidget *listWidget;
	QDialogButtonBox *buttonBox;
};

#endif // LISTWIDGETDEMO_H